<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>用户管理</title>
<style>
  body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
  }
  .container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  table {
    width: 100%;
    border-collapse: collapse;
  }
  th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
  }
  th {
    background-color: #333;
    color: white;
  }
  .status-normal {
    background-color: #5cb85c;
    color: white;
    padding: 5px;
    border-radius: 4px;
  }
  .status-pending {
    background-color: #f0ad4e;
    color: white;
    padding: 5px;
    border-radius: 4px;
  }
  .status-disabled {
    background-color: #d9534f;
    color: white;
    padding: 5px;
    border-radius: 4px;
  }
  .action-button {
    margin-right: 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  .edit {
    background-color: #5bc0de;
    color: white;
  }
  .delete {
    background-color: #d9534f;
    color: white;
  }
  .download {
    background-color: #5cb85c;
    color: white;
  }
</style>
</head>
<body>
<div class="container">
  <h1>用户管理</h1>
  <table>
    <thead>
      <tr>
        <th>序号</th>
        <th>用户名</th>
        <th>邮箱</th>
        <th>角色</th>
        <th>状态</th>
        <th>操作</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>1</td>
        <td>张三</td>
        <td>zhangsan@example.com</td>
        <td>管理员</td>
        <td class="status-normal">正常</td>
        <td>
          <button class="action-button edit">编辑</button>
          <button class="action-button delete">删除</button>
          <button class="action-button download">下载</button>
        </td>
      </tr>
      <tr>
        <td>2</td>
        <td>李四</td>
        <td>lisi@example.com</td>
        <td>用户</td>
        <td class="status-pending">待审核</td>
        <td>
          <button class="action-button edit">编辑</button>
          <button class="action-button delete">删除</button>
          <button class="action-button download">下载</button>
        </td>
      </tr>
      <tr>
        <td>3</td>
        <td>王五</td>
        <td>wangwu@example.com</td>
        <td>访客</td>
        <td class="status-disabled">禁用</td>
        <td>
          <button class="action-button edit">编辑</button>
          <button class="action-button delete">删除</button>
          <button class="action-button download">下载</button>
        </td>
      </tr>
    </tbody>
  </table>
</div>

<script>
  // JavaScript to handle button actions
  document.querySelectorAll('.edit').forEach(button => {
    button.addEventListener('click', function() {
      alert('编辑功能尚未实现');
    });
  });

  document.querySelectorAll('.delete').forEach(button => {
    button.addEventListener('click', function() {
      alert('删除功能尚未实现');
    });
  });

  document.querySelectorAll('.download').forEach(button => {
    button.addEventListener('click', function() {
      alert('下载功能尚未实现');
    });
  });
</script>
</body>
</html>